<?php
global $_RQ,$_AR;
$_RQ['op']=$_RQ['op']?$_RQ['op']:'main';
$return=array();
$setting=$this->plugin_setting('setting');
$return['total']=pdo_count('jy_commission_tixian',array('mid'=>$_SESSION['uid']));
$setting['tcommission']=$setting['tcommission']?$setting['tcommission']:'佣金';
$setting['tcommission_detail']=$setting['tcommission_detail']?$setting['tcommission_detail']:'提现明细';
$return['setting']=$setting;
if($_RQ['op']=='main'){
	$return['list']=pdo_getall('jy_commission_tixian',array('mid'=>$_SESSION['uid']));
	exi($return);
}
if($_RQ['op']=='status1'){
	$return['list']=pdo_getall('jy_commission_tixian',array('status'=>1,'mid'=>$_SESSION['uid']));
	exi($return);
}
if($_RQ['op']=='status2'){
	$return['list']=pdo_getall('jy_commission_tixian',array('status'=>2,'mid'=>$_SESSION['uid']));
	exi($return);
}
if($_RQ['op']=='status3'){
	$return['list']=pdo_getall('jy_commission_tixian',array('status'=>3,'mid'=>$_SESSION['uid']));
	exi($return);
}
if($_RQ['op']=='status4'){
	$return['list']=pdo_getall('jy_commission_commission',array('status'=>4,'mid'=>$_SESSION['uid']));
	exi($return);
}
?>